﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="ProfileManager.aspx.vb" Inherits="Assignment4.ProfileManager" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            width: 132px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<h1>Profile Manager</h1>
    <table class="style1">
        <tr>
            <td class="style2">
                Name</td>
            <td>
                <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtName" CssClass="lblmessage" ErrorMessage="Enter Name" 
                    ValidationGroup="submit">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style2">
                Surname</td>
            <td>
                <asp:TextBox ID="txtSurname" runat="server" Height="22px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtSurname" CssClass="lblmessage" 
                    ErrorMessage="Enter Surname" ValidationGroup="submit">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style2">
                Date of Birth</td>
            <td>
                  <asp:DropDownList ID="DropDownDay" runat="server">
                </asp:DropDownList>
&nbsp;
                <asp:DropDownList ID="DropDownMonth" runat="server">
                </asp:DropDownList>
&nbsp;
                <asp:DropDownList ID="DropDownYear" runat="server">
                </asp:DropDownList>
                
                </td>
        </tr>
        <tr>
            <td class="style2">
                Hobbies</td>
            <td>
                <asp:TextBox ID="txtHobbies" runat="server" Height="57px" TextMode="MultiLine" 
                    Width="652px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="txtHobbies" CssClass="lblmessage" 
                    ErrorMessage="Enter Hobbies" ValidationGroup="submit">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style2">
                Avatar</td>
            <td>
                <asp:FileUpload ID="fileUpl" runat="server" />
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td>
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
                    CssClass="lblmessage" ValidationGroup="submit" />
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td>
                <asp:Button ID="btnSubmit" runat="server" Text="Update" 
                    ValidationGroup="submit" />
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td>
                <asp:Label ID="lblMessage" runat="server"></asp:Label>
            </td>
        </tr>
    </table>

</asp:Content>

